package com.gz.pass.builder;

/**
 * @author juice-gz
 * date 2022-01-20
 */
public class Director {

    private  Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }
    public  Person personConstruct(){
        builder.buildHead();
        builder.buildBody();
        builder.buildArm();
        builder.buildLegs();
        return builder.getPerson();
    }
}
